package com.youlu.campus.service.order;

import com.youlu.campus.entity.OOrderInfo;
import com.youlu.campus.entity.OrderInfo;
import com.youlu.campus.entity.OrderInfoTip;
import com.youlu.campus.entity.PlatformConfig;

import java.util.Map;

public interface OrderInfoTipService {

    OrderInfoTip find(String orderNo);

    boolean create(OrderInfoTip orderInfoTip);

    Map<String, Object> orderTpsImport(byte[] inputStream, String fileName, String activityId);


    boolean update(OrderInfoTip orderInfoTip);

    OrderInfoTip find(String orderNo, Boolean newed);

    OrderInfoTip find(String orderNo, String subOrderNo);

    OrderInfoTip find(String orderNo, String subOrderNo, Boolean newed);

    /**
     * 设置子订单提示语
     *
     * @param orderInfo
     */
    void setSubOrderTips(OrderInfo orderInfo);

    /**
     * 设置订单提示语
     *
     * @param orderInfo
     */
    void setOrderTipsNes(OrderInfo orderInfo);

    void statisticsActivity(Long total);

    /**
     * 设置子订单提示语
     *
     * @param orderInfo
     */
    void setOOrderTips(OrderInfo orderInfo, PlatformConfig platformConfig, OOrderInfo oOrderInfo);


    void initUserInfo();

}
